package com.ece.core.review.editors;

import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor;
import org.eclipse.ui.texteditor.AbstractTextEditor;

/**
 * A modified java editor to support peer review
 * 
 * @author Senthu Sivasambu, http://ca.linkedin.com/in/sivasambu
 * 
 */
public class OpenCollabJavaEditor extends AbstractTextEditor {

    /**
     * editor
     */
    private final JavaEditor editor = new JavaEditor() {

	@Override
	protected IJavaElement getElementAt(int offset) {
	    return super.getElementAt(offset, true);
	}

	@Override
	protected IJavaElement getCorrespondingElement(IJavaElement element) {
	    return element;
	}
    };

}
